package com.turbo.boot.crawler.service.impl;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.turbo.boot.crawler.dao.entity.CrawlerConfigEntity;
import com.turbo.boot.crawler.dao.mapper.CrawlerConfigMapper;
import com.turbo.boot.crawler.service.ICrawlerConfigService;
import com.turbo.starter.base.rest.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 系统日志
 */
@Service
public class CrawlerConfigServiceImpl extends BaseServiceImpl<CrawlerConfigMapper, CrawlerConfigEntity> implements ICrawlerConfigService {

    @Resource
    private CrawlerConfigMapper crawlerConfigMapper;

    @Override
    public Object page(JSONObject requestParams, Page<CrawlerConfigEntity> page, QueryWrapper<CrawlerConfigEntity> queryWrapper) {
        return crawlerConfigMapper.page(page, queryWrapper);
    }
}